package cn.itcast.service.message;

import cn.itcast.domain.message.Message;

import java.util.List;

public interface MessageService {
    void save(Message message);

    List<Message> findByMail(String email, Integer i);

    void update(Message message);

    void delete(String messageId);

    List<Message> findAll();

    List<Message> findByCompanyId(String companyId);

    List<Message> findByAllMail(String email);

    List<Message> findAllNoRead(Integer i);

    List<Message> findByCompanyIdNoRead(String companyId, Integer i);
}

